<?php 

require '../../frame/base.php';

// 查询商品的收藏数量
$goodsid = !empty($_REQUEST['goodsid'])?$_REQUEST['goodsid']:null;
if($goodsid){
	$collectNum=$Db->field('collects')->table('goods')->where('goodsid',$goodsid)->find()['collects'];$ary=array('collectNmu'=>$collectNum);
	
}
echo json_encode(['code'=>200,'data'=>$ary]);